package com.nuedu.corejava.ch7.homework;

public class Computer extends Students {
	private int opskill=0;
	private int english=0;
	private int finalexamination=0;
	private int middletest=0;
	public Computer(String sid, String name, char sex, int age,int opskill, int english, int finalexamination, int middletest) {
		super(sid, name, sex, age);
		this.opskill = opskill;
		this.english = english;
		this.finalexamination = finalexamination;
		this.middletest = middletest;
	}
	public Computer() {
		super();
	}
	

		
		

	@Override
	double getsum() {
		return this.opskill*0.4+this.english*0.2+this.finalexamination*0.2+this.middletest*0.2;
	}

}
